<?php
use yii\helpers\Url;

$store = $this->context->store;
?>
<footer class="footer">
    <div class="container">
        <div class="row">
            <div class="col-lg-4 col-md-6 col-sm-7 mb-3">
                <div class="footer-about">
                    <div class="footer-logo">
                        <a href="<?= Url::to(['/']) ?>"><?= $store->settings['website_name'] ?: $store->name ?></a>
                    </div>
                    <p>Funmall is an open source mall system based on <a href="https://github.com/yiisoft/yii2">Yii2 with <a href="https://www.funboot.net">Funboot</a>.</p>
                    <div class="footer-payment">
                        <a href="#"><img src=""></a>
                        <a href="#"><img src=""></a>
                        <a href="#"><img src=""></a>
                        <a href="#"><img src=""></a>
                        <a href="#"><img src=""></a>
                    </div>
                </div>
            </div>
            <div class="col-lg-2 col-md-3 col-sm-4 mb-3">
                <div class="footer-widget">
                    <h6><?= Yii::t('app', 'Quick Links') ?></h6>
                    <ul>
                        <li><a href="<?= Url::to(['mall/default/about']) ?>"><?= Yii::t('app', 'About') ?></a></li>
                        <li><a href="<?= Url::to(['mall/default/help']) ?>"><?= Yii::t('app', 'Help') ?></a></li>
                        <li><a href="<?= Url::to(['mall/default/feedback']) ?>"><?= Yii::t('app', 'Contact') ?></a></li>
                        <li><a href="<?= Url::to(['mall/default/faq']) ?>"><?= Yii::t('app', 'FAQ') ?></a></li>
                    </ul>
                </div>
            </div>
            <div class="col-lg-2 col-md-3 col-sm-4 mb-3">
                <div class="footer-widget">
                    <h6><?= Yii::t('app', 'Account') ?></h6>
                    <ul>
                        <li><a href="<?= Url::to(['mall/user/about']) ?>"><?= Yii::t('app', 'Profile') ?></a></li>
                        <li><a href="<?= Url::to(['mall/user/order']) ?>"><?= Yii::t('app', 'Orders') ?></a></li>
                        <li><a href="<?= Url::to(['mall/cart/index']) ?>"><?= Yii::t('app', 'Cart') ?></a></li>
                        <li><a href="<?= Url::to(['mall/user/favorite']) ?>"><?= Yii::t('app', 'Favorite') ?></a></li>
                    </ul>
                </div>
            </div>
            <div class="col-lg-4 col-md-8 col-sm-8 mb-3">
                <div class="footer-newsletter">
                    <h6><?= Yii::t('app', 'Newsletter') ?></h6>
                    <form action="<?= Url::to(['mall/default/subscribe']) ?>">
                        <input type="text" placeholder="<?= Yii::t('app', 'Email') ?>">
                        <button type="submit" class="site-btn"><?= Yii::t('app', 'Subscribe') ?></button>
                    </form>
                    <div class="footer-social">
                        <a href="#"><i class="fa fa-facebook"></i></a>
                        <a href="#"><i class="fa fa-twitter"></i></a>
                        <a href="#"><i class="fa fa-youtube-play"></i></a>
                        <a href="#"><i class="fa fa-instagram"></i></a>
                        <a href="#"><i class="fa fa-pinterest"></i></a>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12 text-center">

                <div class="footer-copyright-text">
                    <p>Copyright © <script>document.write(new Date().getFullYear());</script> <?= Yii::t('app', 'All rights reserved') ?> | <?= Yii::t('app', 'Give a star to') ?> <i class="fa fa-heart" aria-hidden="true"></i> <a href="https://www.funboot.net" target="_blank">Funboot</a></p>
                </div>

            </div>
        </div>
    </div>
</footer>
